import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

export default defineConfig({
  plugins: [vue()],
  build: {
    target: "esnext",
    outDir: "../../../module1",
    sourcemap: false,
    emptyOutDir: true,
  },
  server: {
    host: true,
    proxy: {
      "/BaseUrl": {
        target: "http:172.20.62.103", //设置你调用的接口域名和端口号 别忘了加http
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/BaseUrl/, ""),
      },
    },
  },
});
